-----------------------------------
-- Area: Dynamis - Windurst
--  MOB: Haa Pevi the Stentorian
-- Boss Trigger for RDM NM
-----------------------------------

-----------------------------------
-- onMobSpawn Action
-----------------------------------

function OnMobSpawn(mob)
end;

-----------------------------------
-- onMobDeath
-----------------------------------

function onMobDeath(mob,killer)
	local bossTrigger = GetServerVariable("[DynaWindurst]Boss_Trigger");

	if(bossTrigger == 0 or bossTrigger == 1 or bossTrigger == 2 or bossTrigger == 3) then
		SetServerVariable("[DynaWindurst]Boss_Trigger",bossTrigger + 4);
		SpawnMob(17543588); -- 112
		SpawnMob(17543589); -- 113
	end

	-- If 3 first boss trigger are killed -> pop the last trigger
	if(GetServerVariable("[DynaWindurst]Boss_Trigger") == 7) then
		SpawnMob(17543590); -- 114
		SpawnMob(17543591); -- 115
		SpawnMob(17543592); -- 116
		SetServerVariable("[DynaWindurst]Boss_Trigger",8);
	end

end;